package badDesign
{
import badDesign.IState;

/**
 * @author daichangxin
 */
public class MoveState implements IState
{
	private var _context:Context;
	public function MoveState(context:Context)
	{
		_context = context;
	}
	
	public function onEnter() : void
	{
		trace("move enter");
		
		//逻辑部分 
		//test 当触碰边界需要停止
		_context.changeState(Context.IDLE);
	}

	public function onExit() : void
	{
		trace("moveExit");
	}

	public function getName() : String
	{
		return Context.MOVE;
	}
}
}
